<template>
  <div ref="popupList">
    <div>
      <span>设备编号：</span>
      <el-input
        v-model="ipt.devId"
        placeholder="请输入设备编号"
      ></el-input>
    </div>
    <div>
      <el-button @click="close">关 闭</el-button>
      <el-button
        type="primary"
        @click="confirm"
      >确定</el-button>
    </div>
  </div>
</template>

<script setup>
import { reactive, ref } from "vue";
let ipt = reactive({
  devId: ''
})

const popupList = ref(null) // 把整个组件暴露出去，方便调用

let emit = defineEmits([`close`,'confirm'])

let close = () => {
  emit('close')
}
let confirm = () => {
  emit('confirm')
}

defineExpose({
  popupList
})
</script>
